<template>
	<view class="customErrorPay">
		<view class="main">
			<view class="title"> 預定失敗,請重新訂購 </view>
			<!-- <view class="content">
				<view class="">正在返回订购，请稍后</view>
			</view> -->
			<div class="btn_box">
				<!--<view
					class="btn"
					@click="cancel"
					>取消</view
				>-->
				<view
					class="btn"
					@click="confirm"
					>確定</view
				>
			</div>
		</view>
	</view>
</template>

<script>
export default {
	props: {
		money: {
			type: String,
			default: '',
		},
		payOpt: {
			type: Object,
			default: {},
		},
		payType: {
			type: String,
			default: '0',
		},
	},
	data() {
		return {};
	},
	mounted() {},
	methods: {
		jump(data) {
			let url = '';
			switch (data) {
				case 'service':
					url = '/pages/service/service';
					break;
				case 'predetermineDetails':
					url = '/pages/predetermineDetails/predetermineDetails';
					break;
				default:
			}
			uni.navigateTo({ url });
		},
		cancel() {},
		confirm() {
			this.jump('predetermineDetails');
		},
	},
};
</script>

<style lang="scss" scoped>
.customErrorPay {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	.main {
		// width: 100%;
		// height: 100%;
		padding: 30rpx 60rpx;
		border: 2rpx solid $uni-color-green;
		border-radius: 10rpx;
		color: $uni-color-green;
		background-color: $uni-color-white;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		.title {
			width: 400rpx;
			height: 150rpx;
			text-align: center;
			line-height: 150rpx;
		}
		.content {
			width: 400rpx;
			min-height: 150rpx;
			text-align: center;
			line-height: 2;
		}
		.btn_box {
			width: 400rpx;
			height: 100rpx;
			display: flex;
			justify-content: center;

			.btn {
				height: 30rpx;
				padding: 20rpx;
				line-height: 1;
				border-radius: 10rpx;
				color: $uni-color-white;
				background-color: $uni-color-green;
			}
		}
	}
}
</style>
